
#%%
class Animal:
    __weight='0'

    def __init__(self, name):
        self.name=name
        self.age=0
        self.speed='0'
        self.__weight='0'
    def eat(self):
        print(self.name + " is eating")
        self.__weight='3'
        self.__fun()
    def __fun(self):
        pass
    def run(self):
        print(self.name + " is running")
        print('speed  is '+ self.speed)
    pass
# %%
class Dog(Animal):
    def __init__(self, name):
        super().__init__(name)
        self.speed='50'
    pass
    def eat(self):
        return print("eating")

class Cat(Animal):
    def __init__(self, name):
        super().__init__(name)
        self.speed='40'
class Bird(Animal):
    def __init__(self, name):
        super().__init__(name)
        self.speed='100'
    def fly(self):
        print(self.name + " is flying")

# %%
a=Dog('doga')
b=Cat('catb')
c=Bird('birdc')
# %%
a.eat()
a.run()
# %%
a.speed='60'
a.__weight='100'
a.run()
a.__fun()
# %%

